package cn.wolfcode.luowowo.flight.mapper;

import cn.wolfcode.luowowo.flight.domain.Flight;
import cn.wolfcode.luowowo.flight.query.FlightQueryObject;

import java.util.List;

public interface FlightMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Flight record);

    Flight selectByPrimaryKey(Long id);

    List<Flight> selectAll();

    int updateByPrimaryKey(Flight record);

    /**
     * 查询热门10个
     * @param qo
     * @return
     */
    List<Flight> selectByHotTop10(FlightQueryObject qo);

    List<Flight> selectByInitialABCDE();

    List<Flight> selectByInitialFGHJ();

    List<Flight> selectByInitialKLMNP();

    List<Flight> selectByInitialQRSTW();

    List<Flight> selectByInitialXYZ();

    List<Flight> selectByPortAndTime(FlightQueryObject qo);
}